package hellfire.platform.graphics;


import hellfire.game.weapons.Ball;
import hellfire.system.R;
import hellfire.system.graphics.GLImage;
import hellfire.system.graphics.GLRelVec2;

public class BallRenderer extends AbstractRenderer
{
private static GLImage ballSprite = null;
	
	public void draw(float[] matrix, Object obj)
	{
		Ball b = (Ball) obj;
		if(ballSprite == null)
		{
			ballSprite = new GLImage(R.drawable.ball, new GLRelVec2(0,0), Ball.getDim());
		}
		
		ballSprite.setPos(b.getRenderPos());
		ballSprite.draw(matrix);
		
	}
}
